package Homework;

public class Dog extends Pet{
    private String name;

    public Dog() {
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    public Dog(String name) {
        this.name = name;
    }

    public void eat() {
        super.eat();
        System.out.println("狗狗吃骨头");
    }
    public void catchDisc(){
        System.out.println("狗狗抓飞盘");
    }


}
